package com.pioneer.gui.invoice.controller;

import javax.swing.event.ChangeListener;
import javax.swing.event.ChangeEvent;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.pioneer.gui.invoice.model.InvoiceModel;
import com.pioneer.gui.invoice.model.InvoiceHeaderModel;
import com.pioneer.gui.invoice.view.DetailsPanel;

public class InvoiceModeltoDetailsPanelAdapter
implements ChangeListener
{
	InvoiceModel model;
	DetailsPanel detailsPanel;
	
	public InvoiceModeltoDetailsPanelAdapter(InvoiceModel model, DetailsPanel detailsPanel)
	{
		this.model=model;
		this.detailsPanel=detailsPanel;
	}
	
	public void stateChanged(ChangeEvent e)
	{
		this.detailsPanel.updateTableModel();
	}		
}